package com.sip.stream.utils.zfy.osd;


import com.sip.stream.utils.zfy.config.ZFYOSDConfig;

public class OSDToolFactory {
    public static AbstractYUVOSDTool createOSDTool(int width, int height, ZFYOSDConfig zFYOSDConfig) {
        if (zFYOSDConfig.isOsdInvert()) {
            return new OSDInvertTool(width, height, zFYOSDConfig);
        }
        return new OSDOldTool(width, height, zFYOSDConfig);
    }

    public static BitmapOSDTool createBitmapOSDTool(ZFYOSDConfig zFYOSDConfig) {
        return new BitmapOSDTool(zFYOSDConfig);
    }
}
